package task2_2.com.at.count;

import java.util.Map;
import java.util.HashMap;

public class CountSettings {

    private final String SIN = "sin";
    private final String COS = "cos";
    private final String POW = "pow";

    private Map functioins;
    private Map params;

    protected CountSettings() {
        init();
    }

    private void init() {
        functioins = new HashMap();
        functioins.put(SIN, new Function(SIN, 1));
        functioins.put(COS, new Function(COS, 1));
        functioins.put(POW, new Function(POW, 2));

        params = new HashMap();
    }

    protected Map getFunctioins() {
        return functioins;
    }

    protected void addFunction(Function func) {
        functioins.put(func.getName(), func);
    }

    protected Map getParams() {
        return params;
    }

    protected void addParameter(Parameter param) {
        params.put(param.getName(), param);
    }
}
